{include file="public/header" /}

<body>
<div class="layui-tab">
    <div class="layui-tab-content">
        <!--还款单数-->
        <div class="layui-tab-item layui-show">
            <div class="layui-fluid">
                <div class="layui-card">
                    <div class="layui-card-body">
                        <table id="LAY-user-manage_huankuan_money" lay-filter="LAY-user-manage"></table>
                        <script type="text/html" id="table-useradmin-webuser">
                            <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="qudao_danzi"><i class="layui-icon layui-icon-edit"></i>渠道详情</a>
                        </script>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>

{include file="public/footer" /}
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script src="/dist/js/zoomify.min.js"></script>
<script>
    layui.use(['index', 'table', 'laydate', 'element'], function() {
        var $ = layui.$,
            form = layui.form,
            table = layui.table,
            laydate = layui.laydate;

        //还款单数
        table.render({
            elem: '#LAY-user-manage_huankuan_money',
            even: true, //开启隔行背景
            url:"{:url('admin/sum/repaymentChannel',['time' => $time])}",
            toolbar: '#test-table-toolbar-toolbarDemo',
            cols: [
                [
                    {
                        field: 'name',
                        title: '日期',
                        width: 110,
                        rowspan: 2,
                    },
                    {
                        field: 'yhMoney',
                        title: "<p style='text-align:center' lay-tips='当日到期的订单到期应还金额'>应还金额?</p>",
                        width: 100,
                        rowspan: 2,
                    },
                    {
                        field: 'shMoney',
                        title: "<p style='text-align:center' lay-tips='当日订单实际还款日用户所支付的金额'>实还金额?</p>",
                        width: 100,
                        rowspan: 2,
                    },
                    {
                        field: 'whMoney',
                        title: "<p style='text-align:center' lay-tips='未还金额 = 应还金额-实还金额'>未还金额?</p>",
                        width: 100,
                        rowspan: 2,
                    },
                    {
                        field: 'moneyHkLv',
                        title: "<p style='text-align:center' lay-tips='还款率 = (实还金额/应还金额)*100%'>还款率?</p>",
                        width: 100,
                        rowspan: 2,
                    },
                    {
                        field: 'qeMoney',
                        title: "<p style='text-align:center' lay-tips='当日【实还金额】中未全额还清的还款金额'>全额金额?</p>",
                        width: 100,
                        rowspan: 2,
                    }, {
                    field: 'zqMoney',
                    title: "<p style='text-align:center' lay-tips='当日续期的订单申请金额'>续期金额?</p>",
                    width: 100,
                    rowspan: 2,
                },
                    {
                        field: 'moneyQeLv',

                        title: "<p style='text-align:center' lay-tips='全额率 = (全额还款额/应还款额)*100%'>全额率?</p>",
                        width: 100,
                        rowspan: 2,
                    },
                    {
                        field: 'moneyZqLv',
                        title: "<p style='text-align:center' lay-tips='展期率 = (展期金额/应还款额)*100%'>展期率?</p>",
                        width: 100,
                        rowspan: 2,
                    },
                    {
                        align: 'center1',
                        title: "<p style='text-align:center' lay-tips='用户第一笔借款视为新客'>新客?</p>",
                        colspan: 4
                    }, {
                    align: 'center2',
                    title: "<p style='text-align:center' lay-tips='用户在已有一笔已完成订单基数上后续订单均属于老客订单'>老客?</p>",
                    colspan: 4
                }],
                [
                    {
                        field: 'xkYhMoney',
                        title: '应还金额',
                        width: 100,
                    },
                    {
                        field: 'xkShMoney',
                        title: '已还金额',
                        width: 100,
                    },
                    {
                        field: 'xkWhMoney',
                        title: '未还金额',
                        width: 100,
                    },
                    {
                        field: 'moneyXkHkLv',
                        title: '还款率',
                        width: 100,
                    },
                    {
                        field: 'lkYhMoney',
                        title: '应还金额',
                        width: 100,
                    },
                    {
                        field: 'lkShMoney',
                        title: '已还金额',
                        width: 100,
                    },
                    {
                        field: 'lkWhMoney',
                        title: '未还金额',
                        width: 100,
                    },
                    {
                        field: 'moneyLkHkLv',
                        title: '还款率',
                        width: 100,
                    },
                ]
            ],
            page: true
        });

        //日期范围
        laydate.render({
            elem: '#test6',
            range: true
        });
    });
</script>
